<?php

function testFalse($num=0){
  if($num === false){
    $arr['msg']= "is Not Number,it's boolean false ";
    $arr['flag'] = true;
  } else
  if($num === 0){
    $arr['msg']= "is Number,it's 0 ";
    $arr['flag'] = true;
  } else
  if($num === NULL){
    $arr['msg']= "is Nothing,it's NULL ";
    $arr['flag'] = true;
  } else
  if($num === ""){
    $arr['msg']= "it's noting in quotes ";
    $arr['flag'] = true;
  } else
  if($num === '0'){
    $arr['msg']= "it's zero in quotes ";
    $arr['flag'] = true;
  } else {
    $arr['msg']= "sorry,it's true !!";
    $arr['flag'] = false;
  }
  return $arr;
}
$result = testFalse(123);

if($result['flag']==true){
  echo "DO all the process when case is false!!\n";
  echo $result['msg'];
} else {
  echo "WOW I am true :)\n";
  echo $result['msg'];

}
